<template>
  <div>
    <el-button type="primary" :loading="updatetrendPriceLoading" @click="updatetrendPrice">计算出入场价格</el-button>
    <el-button type="primary" :loading="updatetrendPriceLoading" @click="updateMarketState">设置市场状态</el-button>
  </div>
</template>

<script>
import { updatetrendPrice, updateMarketState } from '@/api/sys'
export default {
  data() {
    return {
      updatetrendPriceLoading: false
    }
  },
  methods: {
    async updatetrendPrice() {
      this.updatetrendPriceLoading = true
      await updatetrendPrice({ md: '666' })
      this.updatetrendPriceLoading = false
    },
    async updateMarketState() {
      await updateMarketState()
    }
  }
}
</script>

<style>

</style>
